var prize = document.querySelector(".prize"),
	rule = document.querySelector(".rule"),
	explain = document.querySelector(".explain"),
	neddle = document.querySelector(".neddle"),
	detail = document.querySelector(".detail"),
	prize_con = document.querySelector(".prize_con"),
	detail_close = document.querySelector(".detail_close"),
	explain_close = document.querySelector(".explain_close"),
	prize_close=document.querySelector(".prize_close");
//抽奖页面跳至活动说明页面
rule.addEventListener("click", function() {
	explain.setAttribute("style", "display:block");
})
//活动说明页面跳至抽奖页面
explain_close.addEventListener("click", function() {
	explain.setAttribute("style", "");
})
//抽奖页面跳至我的奖品页面
prize.addEventListener("click", function() {
	prize_con.setAttribute("style", "display:block");
})
//关闭我的奖品页面
prize_close.addEventListener("click",function(){
	prize_con.setAttribute("style","");
})
//抽奖页面动画结束后跳转至跳转页面
neddle.addEventListener("click", function() {
	detail.setAttribute("style", "display:block");
})
//关闭跳转页面
detail_close.addEventListener("click", function() {
	detail.setAttribute("style", "");
})
